package com.app.activitys;

import com.example.applucianokikao.R;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.view.View.OnClickListener;


public class ActivityContato extends Activity{

	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_contato);
	
	
		Button button_ligar = (Button) findViewById(R.id.button_ligar);
		Button button_email = (Button) findViewById(R.id.button_email);
		Button button_quem = (Button) findViewById(R.id.button_quem_sou_eu);
		
		ImageButton button_facebook = (ImageButton) findViewById(R.id.button_facebook_contato);
		ImageButton button_tw = (ImageButton) findViewById(R.id.button_tw_contato);
		ImageButton button_youtube = (ImageButton) findViewById(R.id.button_youtube_contato);
		ImageButton button_instagram = (ImageButton) findViewById(R.id.button_instagram_contato);
		
		button_facebook.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Uri uri = Uri.parse("https://www.facebook.com/lucianokikaooficial?fref=ts");
				Intent intent = new Intent(Intent.ACTION_VIEW, uri);
				startActivity(intent);
			}
		});
		
		button_tw.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Uri uri = Uri.parse("https://twitter.com/lucianokikao");
				Intent intent = new Intent(Intent.ACTION_VIEW, uri);
				startActivity(intent);
			}
		});
		
		button_youtube.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Uri uri = Uri.parse("http://www.youtube.com/lucianokikaovideos");
				Intent intent = new Intent(Intent.ACTION_VIEW, uri);
				startActivity(intent);
			}
		});
		
		button_instagram.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Uri uri = Uri.parse("http://instagram.com/lucianokikao#");
				Intent intent = new Intent(Intent.ACTION_VIEW, uri);
				startActivity(intent);
			}
		});
		
		button_ligar.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Uri uri = Uri.parse("tel:0419281110088");
				Intent intent = new Intent(Intent.ACTION_CALL,uri);
				startActivity(intent);
				
			}
		});
	
		button_email.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(Intent.ACTION_SEND);
				intent.setType("plain/text");
				intent.putExtra(Intent.EXTRA_EMAIL, new String[]{"Contato@lucianokikao.com","contato@lucianokikao.com.br","lucianokikao@hotmail.com"});
				startActivity(Intent.createChooser(intent, "Enviar Email"));
				
			}
		});
		
		button_quem.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Uri uri = Uri.parse("http://www.lucianokikao.com.br/quem-sou-eu	");
				Intent intent = new Intent(Intent.ACTION_VIEW, uri);
				startActivity(intent);
				
			}
		});
		
	}
	
}
